#include "tree.h"


int main()
{

    FILE *fd_out;
	int Node_counts = 0, i = 0;
	fd_out = fopen("1.txt", "r");
	fread(&Node_counts,sizeof(int),1,fd_out);
	BiTree Bt;
    Bt = (BiTree)malloc(sizeof(BiTNode));
	while(i <= Node_counts)
	{
	fread(Bt,sizeof(BiTNode),1,fd_out);
	printf("The Node date is %2d,Node id is %2d,Node parent_id is %2d\n",Bt->data,Bt->id,Bt->parent_id);
	i++;
	}

	fclose(fd_out);
	return 0;
}
